/**           
 * Queen.java
 * Auti i class epistrefi oles tis pithanes/nomimes kinisis tou Queen.
 */
package gameStructure;

import java.awt.Point;
import java.util.ArrayList;
import java.util.Vector;

/**
 * 
 * @author Stordopoulos Dimitris <stordop@csd.uoc.gr>
 */
public class Queen extends  Piece{
    /**
     * 
     * @param pos Thesi tis Queen.
     * @param clr To hroma tis Queen.
     */
    public Queen(Point pos, char clr){
        p=pos;
        clor=clr;
        value="Queen";
        mov=false;
    }
    /**
     * Epistrefi Oles tis pithanes/nomimes kinisis pou bori na kani to Queen
     * apo tin singekrimeni thesi ( tou Point )
     * @param Board To Board me ta pionia pano sto Chess Board.
     * @return Vector pou periehi tis pithanes/epitreptes kinisis tou Queen.
     */
    public Vector<Point> moves(ArrayList<ArrayList> Board){
        Vector<Point> ret=new Vector();
        
        Bishop bi= new Bishop(p, clor);
        Rook ro= new Rook(p, clor);
        ret=bi.moves(Board, 0, 0, 0);
        ret.addAll(ro.moves(Board, 0, 0, 0));
        return ret;
    }
}